const { REDIS_CONF } = require('./db_config'),
    { isPard } = require('./env_config');
module.exports = {
    qiniu: {
        keys: {
            ak: 'qMK7okFyL1xX2o8gjFzy1PrI_jXR_yf58naIcIs8',
            sk: 'j6Ngxxy6xSzXi9czKXun0Uju_5hDahAla9THml9C'
        },
        bucket: {
            blogsimg: {
                bucket_name: 'bjblogs-image',
                domain: 'http://blogsimg.zhouziao.cn'
            }
        }
    },
    sessionInfo: {
        keys: ['DFEKfosidj@#$jklaf12'],
        name: 'blogs.sid',
        pirefix: 'blogs.sess',
    },
    cookieInfo: {
        path: '/',
        httpOnly: false,
        maxAge: 24 * 60 * 60 * 1000,
        overwrite: true,
        signed: true
    },
    redisInfo: {
        all: `${REDIS_CONF[1]}:${REDIS_CONF[0]}`
    },
    adminInfo: {
        username: 'admin',
        password: 'admin'
    },
    cryptoSecret: 'DFEKfosidj@#$jklaf1234',
    corsOrigin: isPard ? ['http://blogsadmin.zhouziao.cn','http://blogspc.zhouziao.cn'] : ['http://localhost:8081', 'http://localhost:8083']
    //corsOrigin: ['http://blogsadmin.zhouziao.cn','http://blogspc.zhouziao.cn']
}